<%@ page language="java" contentType="text/html; charset=UTF-8"
         import="com.baidu.ueditor.ActionEnter"
         pageEncoding="UTF-8" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="com.demo.common.Constants" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%


    /***
     * ref:http://blog.csdn.net/yuancenyi/article/details/53327414
     */
    try {
        request.setCharacterEncoding("utf-8");
        response.setHeader("Content-Type", "text/html");

        String rootPath = application.getRealPath("/");

        //	out.write( new ActionEnter( request, rootPath ).exec() );

        String exec = new ActionEnter(request, Constants.thumbnailPath, rootPath).exec();
        PrintWriter writer = response.getWriter();
        writer.write(exec);
        writer.flush();
        writer.close();
    } catch (Exception e) {
        System.out.println("Exception:" + e);
    }

%>